#pragma once
#include "afxcmn.h"


// CDlgEditCollection dialog

class CDlgEditCollection : public CDialog
{
	DECLARE_DYNAMIC(CDlgEditCollection)

public:
	CDlgEditCollection(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgEditCollection();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnBnClickedButtonBrowse();

// Dialog Data
	enum { IDD = IDD_DIALOG_EDIT_COLLECTION };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	BOOL m_bAddCollection;
	LONG m_nID;
	CString m_szID;
	CString m_szDescription;
	CString m_szName;
	BOOL m_bUserListed;

	INT m_nIndexID;
	CArray<LONG> m_naID;
	CSpinButtonCtrl m_ctrlRecord;

	BOOL UpdateRecord();
	afx_msg void OnBnClickedButtonApply();
	afx_msg void OnBnClickedButtonDelete();
	afx_msg void OnDeltaposSpinRecord(NMHDR *pNMHDR, LRESULT *pResult);
	BOOL m_bElectronic;
	CString m_szIconFile;
	CString m_szPrintNotice;
};
